home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HAM Radio 1997
/
HAM Radio 1997.iso
/
vcls
/
moden
/
addatab.int
< prev
next >
Wrap
Text File
|
1996-04-08
|
1KB
|
49 lines
{$G+,X+,F+}
{Conditional defines that may affect this unit}
{$I AWDEFINE.INC}
{*********************************************************}
{* ADDATAB.PAS 1.01 *}
{* Copyright (c) TurboPower Software 1995 *}
{* All rights reserved. *}
{*********************************************************}
unit ADDataB;
{-INI/Database concepts}
interface
uses
SysUtils,
Classes,
OoMisc;
type
{.Z+}
{information about one field in an INI database}
TDBFieldInfo = class(TObject)
public
Len : Word;
IsStr : Boolean;
Name : String;
constructor CreateString(const FldName : String; const FldLen : Word);
constructor CreateInt(const FldName : String);
constructor Copy(const FI : TDBFieldInfo);
end;
{a list of TDBFieldInfos}
TDBFieldList = class(TList)
public
procedure StrsToPChars(var StrRec, PCharRec);
{-Convert a record with string variables to a record with PChars}
procedure PCharsToStrs(var PCharRec, StrRec);
{-Convert a record with PChar variables to a record with strings}
end;
{.Z-}
{an indexed field}
TDBIndexedField = String[MaxNameLen];